package com.raycloud.erp.omll.provider.service;

import com.omall.open.sdk.domain.OrderDetail;
import com.omall.open.sdk.domain.RefundInfo;
import com.raycloud.erp.omll.data.entity.MulPlatformUser;
import com.raycloud.erp.omll.provider.model.bo.OrderIndexQueryBO;

import java.util.List;

/**
 * @author 枫伦
 * @DESCRIPTION
 * @create 2021/1/6 11:09 上午
 */
public interface OrderIndexService {
    /***
     * @DESCRIPTION: 订单查询
     * 由于洋葱平台的规定，订单支付成功2-3个小时后，订单才会提供给到商家获取，建议使用商家获取订单时间进行查询
     * @author 枫伦
     * @params: []
     * @return: void
     * @Date: 2021/1/6 12:55 下午 
     * @Modified By:
     * @param
     */
    void saveOrderFromChannel(OrderIndexQueryBO orderIndexQueryBO, MulPlatformUser mulPlatformUser);

    /***
     * @DESCRIPTION: 订单详细信息
     * @author 枫伦
     * @params: [platformCode, user]
     * @return: java.util.List<com.omall.open.sdk.domain.OrderDetail>
     * @Date: 2021/1/14 7:38 下午 
     * @Modified By:  
     */
    List<OrderDetail> getOrderDetail(String platformCode, MulPlatformUser user);

    /***
     * @DESCRIPTION: 售后订单列表
     * @author 枫伦
     * @params: [platformCode, user]
     * @return: java.util.List<com.omall.open.sdk.domain.RefundInfo>
     * @Date: 2021/1/15 9:50 上午
     * @Modified By:  
     */
    List<RefundInfo> getRefundDetail(String platformCode, MulPlatformUser user);

}
